package com.yjhb.android.sbz.dialog;

import android.app.Activity;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;

import com.yjhb.android.sbz.R;
import com.jojo.android.zxlib.base.BaseDialog;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * 创建者 zx
 * 创建时间 2021/1/13 15:32
 */
public class InfoDialog extends BaseDialog {
    private final String TAG = "InfoDialog";
    @BindView(R.id.close_iv)
    ImageView closeIv;
    @BindView(R.id.content_layout)
    LinearLayout contentLayout;
    @BindView(R.id.image_iv)
    TextView imageIv;

    public InfoDialog(@NonNull Fragment context) {
        super(context);
    }

    public InfoDialog(Activity context) {
        super(context);
    }

    @Override
    protected void init() {
        setCanceledOnTouchOutside(true);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.dialog_info;
    }

    @OnClick(R.id.close_iv)
    void closeIv() {
        dismiss();
    }

}
